package com.reflect;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

public class Test1 {
	
	public static void main(String[] args) {
		try {
			
				Constructor<Static> constructor = Static.class.getDeclaredConstructor(null);
				
				constructor.setAccessible(true);
				
				Static static1 = constructor.newInstance(null);
				
				static1.say();
				
		} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException
				| SecurityException | InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
